package com.hk;

public class PlayGame {
	private static PlayGame playgame;
	private boolean split = false;
	private boolean end = false;
	private boolean play = false;
	private boolean hit	= false;
	private boolean win	= false;
	private int money = 2000;
	private int batting = 0;
	private int splitbatting = 0;
	private String name;
	
	private PlayGame() {
	}
	public static PlayGame getProcess() {
		if (playgame==null) {
			playgame = new PlayGame();
		}
		return playgame;
	}
	public void Reset() {
		splitbatting = 0;
		batting = 0;
		end = false;
		split = false;
		play = false;
		hit = false;
	}
	
	public boolean isWin() {
		return win;
	}
	public void setWin(boolean win) {
		this.win = win;
	}
	public boolean isHit() {
		return hit;
	}
	public void setHit(boolean hit) {
		this.hit = hit;
	}
	public void setSplitbatting(int splitbatting) {
		this.splitbatting = splitbatting;
	}
	public int getSplitbatting() {
		return splitbatting;
	}
	public boolean isSplit() {
		return split;
	}
	public void setSplit(boolean split) {
		this.split = split;
	}
	public boolean isEnd() {
		return end;
	}
	public void setEnd(boolean end) {
		this.end = end;
	}
	public boolean isPlay() {
		return play;
	}
	public void setPlay(boolean play) {
		this.play = play;
	}
	public int getMoney() {
		return money;
	}
	public void setMoney(int money) {
		this.money = money;
	}
	public int getBatting() {
		return batting;
	}
	public void setBatting(int batting) {
		this.batting = batting;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
